package com.sky.gateway.config;

import com.sky.gray.service.IGrayService;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GrayConfig {

    @Bean
    public GlobalFilter globalFilter(IGrayService grayService) {
        return new GrayPublishFilter(grayService);
    }


}
